//
//  JYArcViewController.m
//  FinderBox
//
//  Created by JiYi on 2018/10/11.
//  Copyright © 2018 JiYi. All rights reserved.
//

#import "JYArcViewController.h"
#import "JYPushArcViewController.h"

@interface JYArcViewController ()

@end

@implementation JYArcViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self addMJ];

}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];

}

- (void)reload {
    [self.commonWeb reload];
}
#pragma mark - 添加刷新
- (void)addMJ {
    self.commonWeb.scrollView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        [self.bridge callHandler:@"initData" data:nil responseCallback:^(id responseData) {

        }];
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [self.commonWeb.scrollView.mj_header endRefreshing];
        });
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
